package com.zxp.web.sys_role.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author MasterZ
 * @Date 2025/9/30 10:12
 */
@Data
@TableName("sys_role")
public class SysRole {
    @TableId(type = IdType.AUTO)
    private Long roleId;
    private String roleName;
    private String type;
    private String remark;
    @TableField(fill = FieldFill.INSERT)//插入时自动填充时间-mybatis-plus注解
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时自动填充时间
    private Date updateTime;
}
